package com.bpz.utils;

import com.alibaba.fastjson.JSONObject;

/**
 * User: ChuanQi Date: 13-6-7 Time: 下午3:55 To change this template use File |
 * Settings | File Templates.
 */
public class ReturnResult {
	/** 返回的数据列表 */
	private Object rows = "";
	/** 返回的单条的数据 */
	private Object data = "";
	/** 数据总量，主要是用于分页中的总记录数 */
	private long total = 0;
	/**
	 * 操作的状态
	 */
	private Status status = Status.ERROR;
	/**
	 * 状态码
	 */
	//private int code = 100002000;



	public Status getStatus() {
		return status;
	}

	public void setStatus(Status status) {
		this.status = status;
	}

	//public int getCode() {
	//	return code;
	//}

	//public void setMsg(i18nUtils.getVal("int code) {
	//	this.code = code;
	//}

    /**
     * 提示信息
     */
    private String msg;
	 public String getMsg() { return msg; }

	 public void setMsg(String msg) { this.msg = msg; }


	public Object getRows() {
		return rows;
	}

	public void setRows(Object rows) {
		this.rows = rows;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public long getTotal() {
		return total;
	}

	public void setTotal(long total) {
		this.total = total;
	}

	public String toString() {
		return JSONObject.toJSONString(this);
	}
}
